<?php
/**
 * Created by PhpStorm.
 * User: chenxiongde
 * Date: 17/4/30
 * Time: 下午6:13
 */
class Controller{
    public function __construct()
    {
        if(method_exists($this,'__init')){
            $this->__init();
        }

    }

    protected  function  success($message='操作成功',$url=null,$time=3){
        $url = $url ?$url:'';
        include MANGO_TPL_PATH.'/dispach.html';
    }
    protected  function  error($message='操作失败',$url=null,$time=3){
        $url = $url ?$url:'';
        include MANGO_TPL_PATH.'/dispach.html';
    }
}
?>